<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.css}">
</head>
<body>
<table class="table table-striped">
    <thead>
    <tr>
        <th scope="col">ID</th>
        <th scope="col">账号</th>
        <th scope="col">年龄</th>
        <th scope="col">地址</th>
        <th scope="col">姓名</th>
        <th scope="col">删除</th>
        <th scope="col">修改</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="user : ${staffList}">
        <th scope="row" th:text="${userStat.index + 1}">1</th>
        <td th:text="${user.username}">neo</td>
        <td th:text="${user.password}">Otto</td>
        <td th:text="${user.age}">6</td>
        <td th:text="${user.address}">6</td>
        <td th:text="${user.admin.name}">6</td>
        <td><a th:href="@{/generator/staff/updatePage(id=${user.id})}">edit</a></td>
        <td><a th:href="@{/generator/staff/delete(id=${user.id})}">delete</a></td>
    </tr>
    </tbody>
</table>
</body>
</html>